<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>闭包</title>
</head>
<body>
  <script>
    function makeFn () {
      let name = 'MDN'
      return function inner () {
        console.log(name)
      }
    }

    let fn = makeFn()
    fn()

    // console.dir(makeFn)
    // console.dir(fn)

  </script>
</body>
</html>